home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global PaymentInvoiceList
-
- on keyDown
- if the key = TAB then
- unfound = "TRUE"
- tAmt = value(member("payfield:Amount").text) + 0.0
- put string(tAmt) into member "payfield:Amount"
- repeat with i = 1 to PaymentInvoiceList.count
- if PaymentInvoiceList[i].InvAmount = tAmt then
- put string(tAmt) into member ("payfield:Payment" & string(i))
- unfound = "FALSE"
- exit repeat
- next repeat
- end if
- put "0.00" into member ("payfield:Payment" & string(i))
- end repeat
- if unfound = "TRUE" then
- repeat with i = 1 to PaymentInvoiceList.count
- if PaymentInvoiceList[i].InvAmount > tAmt then
- put string(tAmt) into member ("payfield:Payment" & string(i))
- tAmt = 0.0
- exit repeat
- next repeat
- end if
- put string(PaymentInvoiceList[i].InvAmount) into member ("payfield:Payment" & string(i))
- tAmt = tAmt - value(PaymentInvoiceList[i].InvAmount)
- end repeat
- end if
- reCalcPayment()
- end if
- pass()
- end
-